package HomeWork;
/*
定义一个女朋友类（GirlFriend）女朋友的属性包含：姓名，身高，体重。行为包含：洗衣服wash()，做饭cook()。
 */
public class GirlFriend {
    private String name;
    private int height;
    private int weight;

//构造器============================================================
    public GirlFriend(){

    }

    public GirlFriend(String name, int height, int weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }
//set&get==========================================================
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
//方法==========================================================
    //展示参数
    public void show(){
        System.out.println("我的女朋友名字是：" + this.name);
        System.out.println("我的女朋友身高为：" + this.height);
        System.out.println("我的女朋友体重为：" + this.weight);
    }

    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }

    public void cook(){
        System.out.println("女朋友给我做饭");
    }

}
